<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>查看数据</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../assets/libs/layui/css/layui.css" media="all">
</head>

<body>

    <form class="layui-form" lay-filter="example">

        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">订单编号:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="orderId" disabled="true" autocomplete="off" id="orderId" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">起始地:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="startRegion" lay-verify="title" autocomplete="off" disabled="true"
                    id="startRegion" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">终点站:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="endRegion" lay-verify="title" autocomplete="off" disabled="true" id="endRegion"
                    class="layui-input">
            </div>
        </div>


        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">高铁日期:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="speedDate" lay-verify="title" autocomplete="off" disabled="true" id="speedDate"
                    class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">高铁时间:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="speedTime" lay-verify="required" disabled=" true" id="speedTime"
                    autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">座位票价:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="speedMon" lay-verify="required" disabled=" true" id="speedMon"
                    autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">总座位:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="speedPollall" lay-verify="required" disabled=" true" id="speedPollall"
                    autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">剩余座位:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="speedPolleave" lay-verify="required" disabled=" true" id="speedPolleave"
                    autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">车厢数目:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="speedSection" lay-verify="required" disabled=" true" id="speedSection"
                    autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">车厢排数:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="speedRow" lay-verify="required" disabled=" true" id="speedRow"
                    autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">车费总数:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="allPrice" lay-verify="required" disabled=" true" id="allPrice"
                    autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">联系电话:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="phone" lay-verify="required" disabled=" true" id="phone" autocomplete="off"
                    class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">车票数:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="pollNum" lay-verify="required" disabled=" true" id="pollNum"
                    autocomplete="off" class="layui-input">
            </div>
        </div>

    </form>
    <script src="../../assets/libs/layui/layui.js" charset="utf-8"></script>
    <script src="../js/util.js" charset="utf-8"></script>
    <script>

        layui.config({
            base: '/module/'
        }).use(['jquery', 'layer', 'table', 'form', 'config'], function () {
            var $ = layui.jquery;
            var layer = layui.layer;
            var table = layui.table;
            var form = layui.form;
            var config = layui.config;
            var req = GetRequest();

            var no = req['editNo'];

            $.ajax({
                url: config.base_server + 'getOrderById?editNo=' + no,
                dataType: 'json',
                type: 'get',
                success: function (data) {
                    data = data.data;
                    $('#orderId').val(data.orderId);
                    $('#startRegion').val(data.startRegion);
                    $('#speedDate').val(data.speedDate);
                    $('#endRegion').val(data.endRegion);
                    $('#speedTime').val(data.speedTime);
                    $('#speedMon').val(data.speedMon);
                    $('#speedPollall').val(data.speedPollall)
                    $('#speedPolleave').val(data.speedPolleave)
                    $('#speedSection').val(data.speedSection)
                    $('#speedRow').val(data.speedRow)
                    $('#pollNum').val(data.pollNum)
                    $('#allPrice').val(data.allPrice)
                    $('#phone').val(data.phone)

                }
            })
        });
    </script>


</body>